import { request } from "../utils/request";

// export function fetchTowersList(data) {
//   return request({
//     url: '/api/tower/listPage',
//     method: 'post',
//     params: data
//   })
// }

//显示查询

export const fetchTowersByPage = (data) => {
  return request.post('/api/tower/listPage', data)
}

//修改数据
export const updateTower = (data) => {
  return request.post('/api/tower/update', data)
}

//导入数据
export const uploadTower= (data) => {
  return request.post('/api/tower/saveBatch', data)
}

//删除数据
export const deleteTower = (id) => {
  return request.post(`/api/tower/delete/${id}`,id)
}